﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"                      
           xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" 
           x:Class="SomethingSpacial.Views.MixItUp.PrintMapPage"            
           Width="800" Height="600"
		   Style="{StaticResource TransparentChildWindowStyle}" 
		   x:Name="PrintBadgeMapPageChildWindow"
           xmlns:local="clr-namespace:SomethingSpacial.Views.MixItUp"
		   Title="Print Event Directions">  		   

    <StackPanel x:Name="LayoutRoot" Margin="0,5,0,-5">



		<StackPanel x:Name="stackPanelAddress" Margin="8,0,0,0" Orientation="Vertical" VerticalAlignment="Top">
    		<StackPanel x:Name="stackPanelFrom" Height="32" Margin="0,0,77,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                  
    			<TextBlock x:Name="textBlockFromAddress" Margin="0,5,0,11" TextWrapping="Wrap" Text="From" Width="61" VerticalAlignment="Center" Foreground="White"/>
    			<TextBox x:Name="textBoxFromAddress" Text="FromAddress" HorizontalAlignment="Left" VerticalAlignment="Center" Width="600"/>
    		</StackPanel>
    		<StackPanel x:Name="stackPanelTo" Height="24" Margin="0,0,8,0" Orientation="Horizontal">
    			<TextBlock x:Name="textBlockToAddress" Margin="0,5,0,11" TextWrapping="Wrap" Text="To" VerticalAlignment="Center" Width="61" Foreground="White"/>
    			<TextBox x:Name="textBoxToAddress" HorizontalAlignment="Left" Text="ToAddress" VerticalAlignment="Center" Width="600"/>
    			<Button x:Name="AddressMapButton" Width="100" Content="Show Address" Height="25" Margin="0,0,0,-1" RenderTransformOrigin="6.97,-0.88"/>
    		</StackPanel>
    	</StackPanel>
    	<StackPanel x:Name="stackPanelDirections" Height="453" Orientation="Horizontal" Width="782" HorizontalAlignment="Left" Margin="0,20,0,0">
    		<Canvas x:Name="canvasMaps" Margin="10,0,0,0" Width="474" Height="467" HorizontalAlignment="Left" VerticalAlignment="Top">
    			<local:MapControl x:Name="MyMapControl" Height="440" Width="466" VerticalAlignment="Top" />
                  
    		</Canvas>
    		<Border HorizontalAlignment="Right" Height="440" Margin="30,0,0,0" VerticalAlignment="Top" Width="266" Background="White">
    			<TextBlock x:Name="DirectionsTextBlock" Text="Directions" 
    				TextWrapping="Wrap" Foreground="#FF212121" VerticalAlignment="Top"/>
    		</Border>
    		<!-- CredentialsProvider="AlPviMwn0YYUePvYtdFmfpfULbjjL_MeTT-igDBLWUypmeVLrPUubSxyuCljHjUl" -->
    	</StackPanel>
    	<Canvas x:Name="printGridCanvas" Height="364" Background="White" Margin="8,0,11,0" Visibility="Collapsed">
    		<Grid x:Name="printGrid" Background="White" Height="311" Width="745" d:LayoutOverrides="Height" Canvas.Left="18" Canvas.Top="8">
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="0.055*"/>
    				<ColumnDefinition Width="0.187*"/>
    				<ColumnDefinition Width="0.493*"/>
    				<ColumnDefinition Width="0.266*"/>
    			</Grid.ColumnDefinitions>

    			<Grid.RowDefinitions>
    				<RowDefinition Height="21"/>
    				<RowDefinition Height="28"/>
    				<RowDefinition Height="29"/>
    				<RowDefinition Height="29"/>
    				<RowDefinition Height="29"/>
    				<RowDefinition Height="90"/>
    				<RowDefinition/>
    				<!--<RowDefinition Height="0*"/>-->
    			</Grid.RowDefinitions>
    			<TextBlock x:Name="textBlockHeaderAttendeeNamePrint_Copy" TextWrapping="Wrap" Text="EVENT ATTENDEE BADGE" Grid.Row="5" Grid.Column="0" Foreground="Black" Grid.ColumnSpan="2" RenderTransformOrigin="0.5,0.5" FontFamily="/SomethingSpacial;Component/Fonts/Fonts.zip#35 Helvetica Thin" Margin="-112,5,32,0" UseLayoutRounding="False" d:LayoutRounding="Auto" FontSize="21.333" TextAlignment="Right" Height="25" VerticalAlignment="Top">
    				<TextBlock.RenderTransform>
    					<TransformGroup>
    						<ScaleTransform/>
    						<SkewTransform/>
    						<RotateTransform Angle="-90"/>
    						<TranslateTransform/>
    					</TransformGroup>
    				</TextBlock.RenderTransform>
    			</TextBlock>
    			<TextBlock x:Name="textBlockHeaderAttendeeNamePrint" TextWrapping="Wrap" Text="Attendee Name:" Grid.Row="1" Grid.Column="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,3,8,0" Grid.RowSpan="1"/>
    			<TextBlock x:Name="textBlockAttendeeNamePrint" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.ColumnSpan="1" Margin="8,3,-1,0" Foreground="Black" Grid.RowSpan="1" Grid.Row="1"/>

    			<TextBlock x:Name="textBlockHeaderMeetingTitlePrint" TextWrapping="Wrap" Text="Meeting Title:" Grid.Row="2" Grid.Column="1" Grid.RowSpan="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,4,8,0"/>
    			<TextBlock x:Name="textBlockMeetingTitlePrint" Text="{Binding EVT_Name}" TextWrapping="Wrap" Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="1" Margin="4,3,3,1" Grid.RowSpan="1" Foreground="Black"/>

    			<TextBlock x:Name="textBlockHeaderMeetingTimePrint" TextWrapping="Wrap" Text="Meeting Time:" Grid.Column="1" Grid.Row="3" Foreground="Black" Grid.ColumnSpan="1" Margin="8,4,8,0"/>
    			<TextBlock x:Name="textBlockMeetingTimePrint" FontSize="12" Text="{Binding EVT_Start_Date}"
    				TextWrapping="Wrap" Grid.Column="2" Grid.Row="3" Grid.ColumnSpan="1" Margin="7,4,0,0" Foreground="Black"/>

    			<TextBlock x:Name="textBlockHeaderMeetingDescriptionPrint" TextWrapping="Wrap" Text="Meeting Description:" Grid.Row="4" Grid.Column="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,5,8,0"/>
    			<TextBlock x:Name="textBlockMeetingDescriptionPrint" Text="{Binding EVT_Description}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2" Margin="8,14,8,11" Foreground="Black" Grid.RowSpan="1"/>

    			<TextBlock x:Name="textBlockAttendeeIdPrint" FontSize="50" Grid.RowSpan="1" FontFamily="/SomethingSpacial;Component/Fonts/Fonts.zip#Barcode" RenderTransformOrigin="0.46,2.182" Height="55" Margin="-41,12,39,0" VerticalAlignment="Top" Width="200" Grid.Row="6" Foreground="Black" Grid.ColumnSpan="1" Grid.Column="3"/>

    			<Rectangle x:Name="imageRectanglePrint" Grid.Column="3" Fill="White" Stroke="Black" Grid.RowSpan="4" Margin="19,8,39,-33" Grid.Row="1"/>
    			<Path Data="M33,0 L33,279.11469" Fill="White" HorizontalAlignment="Right" Margin="0,0,7,30.885" Grid.RowSpan="7" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1" StrokeThickness="5"/>

    		</Grid>

    		<Button x:Name="btnPrint" Content="Print Badge"
    			HorizontalAlignment="Left" Height="20" Width="100" VerticalAlignment="Bottom" d:LayoutOverrides="Height" Canvas.Left="18" Canvas.Top="323"/>
    		<Button x:Name="btnPrintCancel" Content="Cancel"
    			HorizontalAlignment="Left" Height="20" Width="100" VerticalAlignment="Bottom" Canvas.Left="128" Canvas.Top="323" d:LayoutOverrides="Height"/>
    	</Canvas>
    	<StackPanel x:Name="stackPanelPrintButtons" Height="30" HorizontalAlignment="Left" Margin="10,0,0,0" Orientation="Horizontal" VerticalAlignment="Top">
    		<Button x:Name="buttonPrint" Content="Print Map" Width="100" HorizontalAlignment="Left"/>
    		<Button x:Name="buttonPrintDirections" Content="Print Directions" HorizontalAlignment="Left" Width="100" Margin="5,0,0,0"/>
    		<Button x:Name="buttonPrintDirectionsAndMap" Content="Print Map With Directions" HorizontalAlignment="Left" Margin="5,0,0,0" Width="150"/>
    	</StackPanel>


	</StackPanel>

</controls:ChildWindow>